package com.sanben.common.enums;

/**
 * @author: cyh
 * @description: 错误信息枚举，统一管理错误信息
 * @date: 2020/8/5 10:57
 */
public enum ErrorMessage {
    SYS_ERROR(500, "系统异常,程序员去撩妹了"),
    SYS_PARAMETER_ERROR(-2, "参数缺失"),
    SYS_AUTO_ERROR(401, "认证失败!"),
    DEFAULT_SUCCESS_MESSAGE(200, "操作成功"),
    SYS_MOBILE_CODE_ERROR(402, "验证码错误,请重新输入"),
    CAN_MODIFY_OWN_PASSWORD(410,"只能修改自己的密码"),
    USER_PASSWORD_NOT_SAME2(411,"两次密码输入不正确"),
    USER_PASSWORD_ERROR(412,"原密码不正确"),
    MOBILE_BEEN_REGISTER(413, "手机号已注册,请直接登录"),
    SYS_USER_PWD_ERROR(414, "用户名或密码错误!");
    private Integer code;
    private String message;

    ErrorMessage(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
